package java_class_work.week04;

public class Demo01 {
    public static void main(String[] args) {
        String str = "As the Chinese online literature industry has gradually matured after two-decade development,it hs received increasing acknowledgment from home and abroad.";
        int length = str.length();
        System.out.println(length);
        str.toUpperCase();
        String[] arr = str.split(" ");
        for (int i = 0; i < arr.length; i++) {
            String s = arr[i];
            System.out.println(s);
        }
        String str1 = "Serendipity";
        System.out.println(str1.indexOf('d'));  //5
        System.out.println(str1.substring(0,6)); //Serend
        System.out.println(str1.lastIndexOf('i')); //8
        System.out.println(str1.charAt(5)); //d
    }
}
